package pcjavanet.mobilesell.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class StorehouseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StorehouseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDbidIsNull() {
            addCriterion("dbid is null");
            return (Criteria) this;
        }

        public Criteria andDbidIsNotNull() {
            addCriterion("dbid is not null");
            return (Criteria) this;
        }

        public Criteria andDbidEqualTo(Integer value) {
            addCriterion("dbid =", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidNotEqualTo(Integer value) {
            addCriterion("dbid <>", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidGreaterThan(Integer value) {
            addCriterion("dbid >", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("dbid >=", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidLessThan(Integer value) {
            addCriterion("dbid <", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidLessThanOrEqualTo(Integer value) {
            addCriterion("dbid <=", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidIn(List<Integer> values) {
            addCriterion("dbid in", values, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidNotIn(List<Integer> values) {
            addCriterion("dbid not in", values, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidBetween(Integer value1, Integer value2) {
            addCriterion("dbid between", value1, value2, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("dbid not between", value1, value2, "dbid");
            return (Criteria) this;
        }

        //--begin
        public Criteria andRefPurchaseDbidIsNull() {
            addCriterion("ref_purchase_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidIsNotNull() {
            addCriterion("ref_purchase_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidEqualTo(Integer value) {
            addCriterion("ref_purchase_dbid =", value, "refPurchaseDbid");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidNotEqualTo(Integer value) {
            addCriterion("ref_purchase_dbid <>", value, "refPurchaseDbid");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidGreaterThan(Integer value) {
            addCriterion("ref_purchase_dbid >", value, "refPurchaseDbid");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_purchase_dbid >=", value, "refPurchaseDbid");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidLessThan(Integer value) {
            addCriterion("ref_purchase_dbid <", value, "refPurchaseDbid");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_purchase_dbid <=", value, "refPurchaseDbid");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidIn(List<Integer> values) {
            addCriterion("ref_purchase_dbid in", values, "refPurchaseDbid");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidNotIn(List<Integer> values) {
            addCriterion("ref_purchase_dbid not in", values, "refPurchaseDbid");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_purchase_dbid between", value1, value2, "refPurchaseDbid");
            return (Criteria) this;
        }

        public Criteria andRefPurchaseDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_purchase_dbid not between", value1, value2, "refPurchaseDbid");
            return (Criteria) this;
        }
        
        //end
        //--begin
        public Criteria andRefGoodsDbidIsNull() {
            addCriterion("ref_goods_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidIsNotNull() {
            addCriterion("ref_goods_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidEqualTo(Integer value) {
            addCriterion("ref_goods_dbid =", value, "refGoodsDbid");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidNotEqualTo(Integer value) {
            addCriterion("ref_goods_dbid <>", value, "refGoodsDbid");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidGreaterThan(Integer value) {
            addCriterion("ref_goods_dbid >", value, "refGoodsDbid");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_goods_dbid >=", value, "refGoodsDbid");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidLessThan(Integer value) {
            addCriterion("ref_goods_dbid <", value, "refGoodsDbid");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_goods_dbid <=", value, "refGoodsDbid");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidIn(List<Integer> values) {
            addCriterion("ref_goods_dbid in", values, "refGoodsDbid");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidNotIn(List<Integer> values) {
            addCriterion("ref_goods_dbid not in", values, "refGoodsDbid");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_goods_dbid between", value1, value2, "refGoodsDbid");
            return (Criteria) this;
        }

        public Criteria andRefGoodsDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_goods_dbid not between", value1, value2, "refGoodsDbid");
            return (Criteria) this;
        }
        
        //end
        
        //status begin 
    public Criteria andStatusIsNull() {
        addCriterion("status is null");
        return (Criteria) this;
    }

    public Criteria andStatusIsNotNull() {
        addCriterion("status is not null");
        return (Criteria) this;
    }

    public Criteria andStatusEqualTo(Integer value) {
        addCriterion("status =", value, "status");
        return (Criteria) this;
    }

    public Criteria andStatusNotEqualTo(Integer value) {
        addCriterion("status <>", value, "status");
        return (Criteria) this;
    }

    public Criteria andStatusGreaterThan(Integer value) {
        addCriterion("status >", value, "status");
        return (Criteria) this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
        addCriterion("status >=", value, "status");
        return (Criteria) this;
    }

    public Criteria andStatusLessThan(Integer value) {
        addCriterion("status <", value, "status");
        return (Criteria) this;
    }

    public Criteria andStatusLessThanOrEqualTo(Integer value) {
        addCriterion("status <=", value, "status");
        return (Criteria) this;
    }

    public Criteria andStatusIn(List<Integer> values) {
        addCriterion("status in", values, "status");
        return (Criteria) this;
    }

    public Criteria andStatusNotIn(List<Integer> values) {
        addCriterion("status not in", values, "status");
        return (Criteria) this;
    }

    public Criteria andStatusBetween(Integer value1, Integer value2) {
        addCriterion("status between", value1, value2, "status");
        return (Criteria) this;
    }

    public Criteria andStatusNotBetween(Integer value1, Integer value2) {
        addCriterion("status not between", value1, value2, "status");
        return (Criteria) this;
    }
        
        //status end
        public Criteria andRefShopDbidIsNull() {
            addCriterion("ref_shop_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidIsNotNull() {
            addCriterion("ref_shop_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidEqualTo(Integer value) {
            addCriterion("ref_shop_dbid =", value, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidNotEqualTo(Integer value) {
            addCriterion("ref_shop_dbid <>", value, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidGreaterThan(Integer value) {
            addCriterion("ref_shop_dbid >", value, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_shop_dbid >=", value, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidLessThan(Integer value) {
            addCriterion("ref_shop_dbid <", value, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_shop_dbid <=", value, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidIn(List<Integer> values) {
            addCriterion("ref_shop_dbid in", values, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidNotIn(List<Integer> values) {
            addCriterion("ref_shop_dbid not in", values, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_shop_dbid between", value1, value2, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefShopDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_shop_dbid not between", value1, value2, "refShopDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidIsNull() {
            addCriterion("ref_color_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidIsNotNull() {
            addCriterion("ref_color_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidEqualTo(Integer value) {
            addCriterion("ref_color_dbid =", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidNotEqualTo(Integer value) {
            addCriterion("ref_color_dbid <>", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidGreaterThan(Integer value) {
            addCriterion("ref_color_dbid >", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_color_dbid >=", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidLessThan(Integer value) {
            addCriterion("ref_color_dbid <", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_color_dbid <=", value, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidIn(List<Integer> values) {
            addCriterion("ref_color_dbid in", values, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidNotIn(List<Integer> values) {
            addCriterion("ref_color_dbid not in", values, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_color_dbid between", value1, value2, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefColorDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_color_dbid not between", value1, value2, "refColorDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidIsNull() {
            addCriterion("ref_configuration_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidIsNotNull() {
            addCriterion("ref_configuration_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid =", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidNotEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid <>", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidGreaterThan(Integer value) {
            addCriterion("ref_configuration_dbid >", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid >=", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidLessThan(Integer value) {
            addCriterion("ref_configuration_dbid <", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid <=", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidIn(List<Integer> values) {
            addCriterion("ref_configuration_dbid in", values, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidNotIn(List<Integer> values) {
            addCriterion("ref_configuration_dbid not in", values, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_configuration_dbid between", value1, value2, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_configuration_dbid not between", value1, value2, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidIsNull() {
            addCriterion("ref_unit_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidIsNotNull() {
            addCriterion("ref_unit_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidEqualTo(Integer value) {
            addCriterion("ref_unit_dbid =", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidNotEqualTo(Integer value) {
            addCriterion("ref_unit_dbid <>", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidGreaterThan(Integer value) {
            addCriterion("ref_unit_dbid >", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_unit_dbid >=", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidLessThan(Integer value) {
            addCriterion("ref_unit_dbid <", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_unit_dbid <=", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidIn(List<Integer> values) {
            addCriterion("ref_unit_dbid in", values, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidNotIn(List<Integer> values) {
            addCriterion("ref_unit_dbid not in", values, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_unit_dbid between", value1, value2, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_unit_dbid not between", value1, value2, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andIntypeIsNull() {
            addCriterion("intype is null");
            return (Criteria) this;
        }

        public Criteria andIntypeIsNotNull() {
            addCriterion("intype is not null");
            return (Criteria) this;
        }

        public Criteria andIntypeEqualTo(Integer value) {
            addCriterion("intype =", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeNotEqualTo(Integer value) {
            addCriterion("intype <>", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeGreaterThan(Integer value) {
            addCriterion("intype >", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("intype >=", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeLessThan(Integer value) {
            addCriterion("intype <", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeLessThanOrEqualTo(Integer value) {
            addCriterion("intype <=", value, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeIn(List<Integer> values) {
            addCriterion("intype in", values, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeNotIn(List<Integer> values) {
            addCriterion("intype not in", values, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeBetween(Integer value1, Integer value2) {
            addCriterion("intype between", value1, value2, "intype");
            return (Criteria) this;
        }

        public Criteria andIntypeNotBetween(Integer value1, Integer value2) {
            addCriterion("intype not between", value1, value2, "intype");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(Double value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(Double value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(Double value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(Double value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(Double value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<Double> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<Double> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(Double value1, Double value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(Double value1, Double value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andSalepriceIsNull() {
            addCriterion("saleprice is null");
            return (Criteria) this;
        }

        public Criteria andSalepriceIsNotNull() {
            addCriterion("saleprice is not null");
            return (Criteria) this;
        }

        public Criteria andSalepriceEqualTo(Double value) {
            addCriterion("saleprice =", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceNotEqualTo(Double value) {
            addCriterion("saleprice <>", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceGreaterThan(Double value) {
            addCriterion("saleprice >", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceGreaterThanOrEqualTo(Double value) {
            addCriterion("saleprice >=", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceLessThan(Double value) {
            addCriterion("saleprice <", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceLessThanOrEqualTo(Double value) {
            addCriterion("saleprice <=", value, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceIn(List<Double> values) {
            addCriterion("saleprice in", values, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceNotIn(List<Double> values) {
            addCriterion("saleprice not in", values, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceBetween(Double value1, Double value2) {
            addCriterion("saleprice between", value1, value2, "saleprice");
            return (Criteria) this;
        }

        public Criteria andSalepriceNotBetween(Double value1, Double value2) {
            addCriterion("saleprice not between", value1, value2, "saleprice");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(Double value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(Double value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(Double value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(Double value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(Double value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<Double> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<Double> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(Double value1, Double value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(Double value1, Double value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andNumberIsNull() {
            addCriterion("number is null");
            return (Criteria) this;
        }

        public Criteria andNumberIsNotNull() {
            addCriterion("number is not null");
            return (Criteria) this;
        }

        public Criteria andNumberEqualTo(Integer value) {
            addCriterion("number =", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotEqualTo(Integer value) {
            addCriterion("number <>", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThan(Integer value) {
            addCriterion("number >", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("number >=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThan(Integer value) {
            addCriterion("number <", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThanOrEqualTo(Integer value) {
            addCriterion("number <=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberIn(List<Integer> values) {
            addCriterion("number in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotIn(List<Integer> values) {
            addCriterion("number not in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberBetween(Integer value1, Integer value2) {
            addCriterion("number between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("number not between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andMemoIsNull() {
            addCriterion("memo is null");
            return (Criteria) this;
        }

        public Criteria andMemoIsNotNull() {
            addCriterion("memo is not null");
            return (Criteria) this;
        }

        public Criteria andMemoEqualTo(String value) {
            addCriterion("memo =", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotEqualTo(String value) {
            addCriterion("memo <>", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThan(String value) {
            addCriterion("memo >", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThanOrEqualTo(String value) {
            addCriterion("memo >=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThan(String value) {
            addCriterion("memo <", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThanOrEqualTo(String value) {
            addCriterion("memo <=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLike(String value) {
            addCriterion("memo like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotLike(String value) {
            addCriterion("memo not like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoIn(List<String> values) {
            addCriterion("memo in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotIn(List<String> values) {
            addCriterion("memo not in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoBetween(String value1, String value2) {
            addCriterion("memo between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotBetween(String value1, String value2) {
            addCriterion("memo not between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }

        public Criteria andMemoLikeInsensitive(String value) {
            addCriterion("upper(memo) like", value.toUpperCase(), "memo");
            return this;
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}